﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="OpenAPI.Model" namespace="OpenAPI.Model.OAuth">

	<class  name="OpenAPI.Model.OAuth.AuthorizeTokenInfo, OpenAPI.Model" table="T_OAUTH_AUTHORIZE_TOKEN">

		<id name="OAUTH_CONSUMER_KEY" column="OAUTH_CONSUMER_KEY" type="String" length="32">
			<generator class="assigned" />
		</id>
		<property name="OAUTH_TOKEN" column="OAUTH_TOKEN" type="String" length="32" not-null ="true"/>
		<property name="OAUTH_TOKEN_SECRET" column="OAUTH_TOKEN_SECRET" type="String" length="32" not-null ="true"/>
		<property name="OAUTH_TOKEN_STATUS" column="OAUTH_TOKEN_STATUS" type="int" not-null ="true"/>
		<property name="OAUTH_TOKEN_REQUEST_TIMESTAMP" column="OAUTH_TOKEN_REQUEST_TS" type="Int64" not-null ="true"/>
		<property name="OAUTH_TOKEN_AUTHORIZE_TIMESTAMP" column="OAUTH_TOKEN_AUTHORIZE_TS" type="Int64"  not-null ="true"/>
		<property name="OAUTH_NONCE" column="OAUTH_NONCE" type="String" length="32"  not-null ="true"/>
	</class>

</hibernate-mapping>
